package com.lmm.yydshtester;

import com.lmm.yydshtester.controller.CommandController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
public class MasterApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(MasterApplication.class, args);
		CommandController commandController = context.getBean(CommandController.class);
		commandController.initCommandMap();
		commandController.commandThreadRunning();
	}

}
